package model.util.champ;

import java.util.List;
import java.util.Vector;

import model.Simulation;
import model.util.Position;
import model.util.grille.Grille;

public abstract class Champ {

	protected Vector<Float> probaNonRetour;
	protected Grille grille;
	protected Vector<Position> alentours;
	public static byte antiTrace;
	public static float attractionX;
	public static float attractionY;


	public Champ(Grille grille_){
		grille = grille_;
		antiTrace = Simulation.antiTrace;
		alentours = new Vector<Position>();
		alentours.add(new Position((short)-1,(short)-1,(byte)0,(byte)0,' '));
		alentours.add(new Position((short)-1,(short)0,(byte)0,(byte)0,' '));
		alentours.add(new Position((short)-1,(short)1,(byte)0,(byte)0,' '));
		alentours.add(new Position((short)0,(short)1,(byte)0,(byte)0,' '));
		alentours.add(new Position((short)1,(short)1,(byte)0,(byte)0,' '));
		alentours.add(new Position((short)1,(short)0,(byte)0,(byte)0,' '));
		alentours.add(new Position((short)1,(short)-1,(byte)0,(byte)0,' '));
		alentours.add(new Position((short)0,(short)-1,(byte)0,(byte)0,' '));
	}

	public abstract Vector<Float> getAttract(short i, short j, List<Position> lasts);
}